/**
 * 
 */
package org.dragonfire.dasm.directives;

import java.util.ArrayList;

import org.dragonfire.dasm.Command;
import org.dragonfire.dasm.Listing;
import org.dragonfire.dasm.DirectiveManager.Directive;

/**
 * Enables output to the listing file for sections of code. It is included for
 * legacy support for TASM and other compilers that always produce listing
 * files. DASM doesn't produce a listing file unless specifically told to do so,
 * so this directive is mostly deprecated.<br />
 * <br />
 * Format: <br />
 * <code>#LIST</code><br />
 * <br />
 * Parameters:<br />
 * <i>None</i><br />
 * <br />
 * Errors:<br />
 * <i>None</i>
 * 
 * @see org.dragonfire.dasm.directives.Nolist
 * @see org.dragonfire.dasm.preprocessor.Preprocessor#setDefaultListingVisibility(boolean)
 * @author Darth Android
 * @version 2.0
 */
public class List extends Directive {

	public ArrayList<Listing> pass1(Command c) {
		getPreprocessor().setDefaultListingVisibility(true);
		return null;
	}
}
